::解压文件并移动到指定目录  controller需要手动从ruoyi-system(复制完删除)复制到ruoyi-admin
:: set app_dir=C:\Users\Administrator\Downloads\aaa
set app_dir=D:\allen\item\private-project\RuoYi-Vue
IF NOT EXIST "%app_dir%" MD "%app_dir%"
IF NOT EXIST "%app_dir%\ruoyi-system\menu" MD "%app_dir%\ruoyi-system\menu" & IF NOT EXIST "%app_dir%\ruoyi-system\src" MD "%app_dir%\ruoyi-system\src" 
IF NOT EXIST "%app_dir%\ruoyi-admin" MD "%app_dir%\ruoyi-admin"
IF NOT EXIST "%app_dir%\ruoyi-ui" MD "%app_dir%\ruoyi-ui"

Bandizip x  -aoa ruoyi.zip
move /y *.sql %app_dir%\ruoyi-system\menu
:: ren vue src
xcopy /s/y vue %app_dir%\ruoyi-ui\src

::复制controller到admin
xcopy /s/y *Controller.java %app_dir%\ruoyi-admin\src\
::模糊查找递归删除文件夹controller,如果支持多种类型，请使用英文逗号分隔开来书写，如.\build*,.\debug*,.\release*
for /f "delims=" %%a in ('dir /ad/s/b .\controller') do rd /s/q "%%~a"

xcopy /s/y/e main %app_dir%\ruoyi-system\src\main
rd vue /s/q
rd main /s/q
:: for /f "delims=" %%a in ('dir /ad/s/b .\main') do rd /s/q "%%~a"
del ruoyi.zip

exit
